//
//  XDColorHeaderFile.h
//  XDEducation
//
//  Created by apple on 2017/4/1.
//  Copyright © 2017年 apple. All rights reserved.
//

#ifndef XDColorHeaderFile_h
#define XDColorHeaderFile_h

/**
 *  ===================================  颜色相关宏定义  =================================
 */



#define         UIColorWithRGBA(r, g, b, a)             [[UIColor alloc] initWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]

#define         UIColorWithRGB(r, g, b)                 UIColorWithRGBA(r, g, b, 1.0)

#define         UIColor(r, g, b)                        [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]

#define         UIColorFromRGB(rgbValue)                [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#define         UIColorFromRGBA(rgbValue,alphaValue)    [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:alphaValue]


/** MBProgress背景颜色 */
#define         HUDBgColor                              UIColorWithRGBA(41, 51, 63, 0.6)

/** TableView背景灰色 */
#define         TableViewBgColor                        UIColorFromRGB(0xf7f7f7)

/** 主题颜色 */
#define         ThemeColor                        UIColorFromRGB(0x33cde6)


#endif /* XDColorHeaderFile_h */
